<html>
<head><meta charset="utf-8"><title>rust 1.50.0 adds a new shared library dependency to libdl · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html">rust 1.50.0 adds a new shared library dependency to libdl</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230066020"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230066020" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230066020">(Mar 12 2021 at 17:16)</a>:</h4>
<p>Hello!<br>
One of my project compiles some crate to a cdylib shared library that exposes an FFI API to be used in other project.<br>
I noticed that since the update to rust 1.50.0, the library now depends on <a href="http://libdl.so">libdl.so</a><br>
Does anyone know what change lead to that dependency being added? For people linking against the library, the linker complain about missing symbols from <a href="http://weak.rs">weak.rs</a> if libdl not added to the linked libraries list</p>



<a name="230066160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230066160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230066160">(Mar 12 2021 at 17:17)</a>:</h4>
<p>It seems that the symbol <code>&lt;_ZN3std3sys4unix4weak13Weak$LT$F$GT$10initialize17h437c9120615a5202E&gt;</code> is using <code>dlsym</code> now</p>



<a name="230070742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230070742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230070742">(Mar 12 2021 at 17:49)</a>:</h4>
<p>Hmmm, that's unfortunate, especially since it's only being used for compatibility with older systems. Trading one kind of compatibility for another. :(</p>



<a name="230073358"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230073358" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230073358">(Mar 12 2021 at 18:06)</a>:</h4>
<p>I am not actually bothered by the change really. It's just that a bunch of things started failing to link against the library suddenly</p>



<a name="230073391"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230073391" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230073391">(Mar 12 2021 at 18:06)</a>:</h4>
<p>Was it mentioned in the changelog for 1.50.0? Maybe I missed it :/</p>



<a name="230073439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230073439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230073439">(Mar 12 2021 at 18:06)</a>:</h4>
<p>I think one of the problems here is that cargo doesn't provide a good programmatic way to see the set of libraries a staticlib needs to link against</p>



<a name="230073444"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230073444" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230073444">(Mar 12 2021 at 18:06)</a>:</h4>
<p>If it was not mentioned, it might be a good thing to add for other changes like that.</p>



<a name="230074007"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230074007" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230074007">(Mar 12 2021 at 18:11)</a>:</h4>
<p>I wish there were a standardized way to provide dependency information for static libraries.</p>



<a name="230074174"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230074174" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230074174">(Mar 12 2021 at 18:12)</a>:</h4>
<p>You can use <code>--print native-static-libs</code>.</p>
<div class="codehilite"><pre><span></span><code>$ echo | rustc --print native-static-libs - --crate-type staticlib
note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -ldl -llog -lgcc -lc -lm
</code></pre></div>



<a name="230074257"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230074257" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230074257">(Mar 12 2021 at 18:13)</a>:</h4>
<p>It's really a shared .so library I am building; not a staticlib</p>



<a name="230074323"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230074323" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230074323">(Mar 12 2021 at 18:14)</a>:</h4>
<p>but maybe I am missing a bit of context^^</p>



<a name="230074928"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230074928" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230074928">(Mar 12 2021 at 18:18)</a>:</h4>
<p>Is cargo directly producing the dylib? or are you getting a static library out of cargo and then linking that into a dylib after?</p>



<a name="230075675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230075675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230075675">(Mar 12 2021 at 18:24)</a>:</h4>
<p>If cargo is producing the .so, it should include appropriate dependencies on libdl and any other library it needs.</p>



<a name="230077597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230077597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230077597">(Mar 12 2021 at 18:38)</a>:</h4>
<p>I am using <code>crate-type = ["rlib", "cdylib", "staticlib"]</code> in my Cargo.toml file<br>
Even though I package the static .a library, no one is really using it. People started complaining because they encountered linker error when they tried to update the shared .so library</p>



<a name="230077682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230077682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230077682">(Mar 12 2021 at 18:39)</a>:</h4>
<p>That seems like a rustc bug then I think - the .so should itself link to libdl</p>



<a name="230077718"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230077718" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230077718">(Mar 12 2021 at 18:39)</a>:</h4>
<p>So to answer your question, I am not sure what/who is producing the shared library. I am just running <code>cargo build</code> :)</p>



<a name="230077787"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230077787" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230077787">(Mar 12 2021 at 18:39)</a>:</h4>
<p>So the new version of my shared library started linking against libdl which what confused the user of the library</p>



<a name="230078075"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078075" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078075">(Mar 12 2021 at 18:42)</a>:</h4>
<p>Oh wait then what broke for the user? Were they running in an environment that doesn't have a libdl or something?</p>



<a name="230078126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078126">(Mar 12 2021 at 18:42)</a>:</h4>
<p>i.e.: after upgrading to rust 1.50.0, a new entry was listed when running <code>ldd</code> in my library:</p>
<div class="codehilite"><pre><span></span><code>libdl.so.2 =&gt; /usr/lib/libdl.so.2 (0x00007f585cc79000)
</code></pre></div>



<a name="230078173"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078173" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078173">(Mar 12 2021 at 18:42)</a>:</h4>
<p>they were running in an environment where libdl is not added by default no</p>



<a name="230078241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078241">(Mar 12 2021 at 18:43)</a>:</h4>
<p>It seems pretty reasonable to me to assume that libdl exists on a system imo</p>



<a name="230078282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078282">(Mar 12 2021 at 18:43)</a>:</h4>
<p>So it exist,  it jsut that the user now needed to change their linker configuration to add <code>-ldl</code></p>



<a name="230078376"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078376" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078376">(Mar 12 2021 at 18:44)</a>:</h4>
<p>added it to their linker configuration when building their own binary?</p>



<a name="230078404"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078404" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078404">(Mar 12 2021 at 18:44)</a>:</h4>
<p>we were just surprised that a change like that appeared with a new version of the rust compiler without any code change on our end</p>



<a name="230078419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078419">(Mar 12 2021 at 18:44)</a>:</h4>
<p>that shouldn't be required at all. They just link to your library which already declares the libdl dependency</p>



<a name="230078431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078431">(Mar 12 2021 at 18:44)</a>:</h4>
<p>yeah it's a setup where the library is loaded by cgo</p>



<a name="230078455"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078455" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078455">(Mar 12 2021 at 18:44)</a>:</h4>
<p>cgo can't handle transitive library loads?</p>



<a name="230078474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078474">(Mar 12 2021 at 18:45)</a>:</h4>
<p>cgo, in bazel to be exact</p>



<a name="230078536"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078536" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078536">(Mar 12 2021 at 18:45)</a>:</h4>
<p>Apparently not, bazel/cgo (I am not sure what part exactly broke) needed to be told about <code>-ldl</code></p>



<a name="230078570"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078570" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078570">(Mar 12 2021 at 18:45)</a>:</h4>
<p>weird</p>



<a name="230078705"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078705" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078705">(Mar 12 2021 at 18:46)</a>:</h4>
<p>my local cgo tests (without) bazel did not encounter the issue though. It was only when running in bazel that things started to break</p>



<a name="230078947"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230078947" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230078947">(Mar 12 2021 at 18:48)</a>:</h4>
<p>Anyway, as I said, I think I would just have liked to read such a change in the changelog that get announced for each version, that's all. I fully understand that assuming that libdl is available is totally right</p>



<a name="230079897"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230079897" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230079897">(Mar 12 2021 at 18:55)</a>:</h4>
<p>Can changelogs be amended after the release? Because I am willing to provide the update if that is something that is actually ok todo <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="230092559"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230092559" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230092559">(Mar 12 2021 at 20:27)</a>:</h4>
<p><span class="user-mention silent" data-user-id="281572">marmeladema</span> <a href="#narrow/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl/near/230079897">said</a>:</p>
<blockquote>
<p>Can changelogs be amended after the release? Because I am willing to provide the update if that is something that is actually ok todo <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>
</blockquote>
<p>I think so, yes</p>



<a name="230095298"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230095298" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230095298">(Mar 12 2021 at 20:49)</a>:</h4>
<p>Yes, we're happy to accept PRs updating release notes.</p>



<a name="230096882"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230096882" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230096882">(Mar 12 2021 at 21:00)</a>:</h4>
<p>Thank you for the inputs! I'll try to find some time to propose an update then :)</p>



<a name="230330491"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230330491" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230330491">(Mar 15 2021 at 11:39)</a>:</h4>
<p><span class="user-mention silent" data-user-id="133247">bjorn3</span> <a href="#narrow/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl/near/230074174">said</a>:</p>
<blockquote>
<p>You can use <code>--print native-static-libs</code>.</p>
<p><div class="codehilite"><pre><span></span><code>$ echo | rustc --print native-static-libs - --crate-type staticlib
note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -ldl -llog -lgcc -lc -lm
</code></pre></div><br>
</p>
</blockquote>



<a name="230330644"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230330644" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230330644">(Mar 15 2021 at 11:40)</a>:</h4>
<p>Recently I received a bug report regarding <code>-lgcc / -lgcc_s</code></p>



<a name="230330757"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust%201.50.0%20adds%20a%20new%20shared%20library%20dependency%20to%20libdl/near/230330757" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust.201.2E50.2E0.20adds.20a.20new.20shared.20library.20dependency.20to.20libdl.html#230330757">(Mar 15 2021 at 11:41)</a>:</h4>
<p>It might be nice to link in the <code>.a</code> I'm afraid :/</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>